public class Demo13 {
    public static void main(String[] args) {
        double x ,y ;
        for (int i = 0; i < 100000; i++) {
            x = Math.sqrt(i + 100);
            y = Math.sqrt(i + 168);

            if (x * x == i + 100 && y * y == i + 168){
                System.out.println(i);
            }
        }
    }
}
